<div class="modal-header">
  <h3 class="modal-title">选择模板</h3>
</div>
<div class="modal-body template-detail">
  <form name="templateForm"  class="form-horizontal" novalidate="novalidate">
    <fieldset>
      <p>模板名称</p>
      <select ng-model="vm.t_id" name="t_id" required>
          <option ng-repeat="template in vm.templateData" value="{{template.t_id}}">{{template.t_name}}</option>
      </select>
      <div ng-if="templateForm.t_id.$invalid" ng-messages="templateForm.t_id.$error">
          <label class="error-messages" ng-message="required"><i></i>不能为空</label>
      </div>
    </fieldset>
  </form>
</div>
<div class="modal-footer" style="clear: both">
  <button class="btn btn-default-dark"  ng-click="vm.ok()" ng-disabled="templateForm.$invalid">确认</button>
  <a class="btn btn-default-dark" ng-click="vm.cancel()">取消</a>
</div>